# from sqlalchemy import create_engine, Column, Integer, String
# from sqlalchemy.ext.declarative import declarative_base
# from sqlalchemy.orm import sessionmaker
#
# DATABASE_URL = "sqlite:///./test.db"  # SQLite 数据库
#
# Base = declarative_base()
#
# class Item(Base):
#     __tablename__ = "items"
#
#     id = Column(Integer, primary_key=True, index=True)
#     name = Column(String, index=True)
#     description = Column(String, index=True)
#
# # 创建数据库引擎
# engine = create_engine(DATABASE_URL)
#
# # 创建数据库表
# Base.metadata.create_all(bind=engine)